<template>
  <div class="user">
    <!-- <span>我的</span> -->
    <p>money模块:</p>
    <span>{{$store.state.money.money}}</span>
    <button type="button" name="button" @click="add">增加</button>
    <button type="button" name="button" @click="reduce">删减</button>
    <home-bar></home-bar>
  </div>
</template>

<script>
import { mapActions } from "vuex";
import HomeBar from "@/components/tab-bar/tab-bar";
export default {
  name: "UserPage",
  components: {
    HomeBar
  },
  props: {},
  data() {
    return {};
  },
  computed: {},
  methods: {
    ...mapActions("money", ["add", "reduce"])
  }
};
</script>
<style lang="scss" scoped>
</style>